"""
寻找水仙花数
判断规则: 一个三位自幂数(1**3 + 5**3 + 3**3 = 153)
寻找范围: 三位数(100~999)

Date: 2019-4-25 10:10
"""

for i in range(99, 1000):
    one = i // 100
    two = i // 10 % 10
    three = i % 10
    if (one**3 + two**3 + three**3 == i):
        print("水仙数! >>>" + str(i))